// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_REP_APPLICATION_ITEM
// * CreateDate    : 2014-06-05 18:30:31
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:30:31
// * LastChanger   : 2014-06-05 18:30:31
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
  	[Serializable]
    public partial class RepApplicationItemTable : TableInfo
    {
		public const string C_TableName = "REP_APPLICATION_ITEM";
		
		public const string C_REP_APPLICATION_ITEM_ID = "REP_APPLICATION_ITEM_ID";
		public const string C_REP_APPLICATION_ID = "REP_APPLICATION_ID";
		public const string C_RELATED_ORDER_ITEM_ID = "RELATED_ORDER_ITEM_ID";
		public const string C_PRODUCT_CODE = "PRODUCT_CODE";
		public const string C_QTY = "QTY";
		public const string C_PLAN_FINISHED_DATE = "PLAN_FINISHED_DATE";
		public const string C_REPAIR_REASON = "REPAIR_REASON";
		public const string C_STATUS = "STATUS";
		
		public RepApplicationItemTable()
        {
            _tableName = "REP_APPLICATION_ITEM";
        }
		
		protected static RepApplicationItemTable _current;
        public static RepApplicationItemTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }
		
		private static void Initial()
        {
            _current = new RepApplicationItemTable();

            _current.Add(C_REP_APPLICATION_ITEM_ID, new ColumnInfo(C_REP_APPLICATION_ITEM_ID,"RepApplicationItemId", true, typeof(string)));
            _current.Add(C_REP_APPLICATION_ID, new ColumnInfo(C_REP_APPLICATION_ID,"RepApplicationId", false, typeof(string)));
            _current.Add(C_RELATED_ORDER_ITEM_ID, new ColumnInfo(C_RELATED_ORDER_ITEM_ID,"RelatedOrderItemId", false, typeof(string)));
            _current.Add(C_PRODUCT_CODE, new ColumnInfo(C_PRODUCT_CODE,"ProductCode", false, typeof(string)));
            _current.Add(C_QTY, new ColumnInfo(C_QTY,"Qty", false, typeof(decimal)));
            _current.Add(C_PLAN_FINISHED_DATE, new ColumnInfo(C_PLAN_FINISHED_DATE,"PlanFinishedDate", false, typeof(DateTime)));
            _current.Add(C_REPAIR_REASON, new ColumnInfo(C_REPAIR_REASON,"RepairReason", false, typeof(string)));
            _current.Add(C_STATUS, new ColumnInfo(C_STATUS,"Status", false, typeof(int)));
			
		}
		
		public ColumnInfo REP_APPLICATION_ITEM_ID
        {
            get { return this[C_REP_APPLICATION_ITEM_ID]; }
        }
		
		public ColumnInfo REP_APPLICATION_ID
        {
            get { return this[C_REP_APPLICATION_ID]; }
        }
		
		public ColumnInfo RELATED_ORDER_ITEM_ID
        {
            get { return this[C_RELATED_ORDER_ITEM_ID]; }
        }
		
		public ColumnInfo PRODUCT_CODE
        {
            get { return this[C_PRODUCT_CODE]; }
        }
		
		public ColumnInfo QTY
        {
            get { return this[C_QTY]; }
        }
		
		public ColumnInfo PLAN_FINISHED_DATE
        {
            get { return this[C_PLAN_FINISHED_DATE]; }
        }
		
		public ColumnInfo REPAIR_REASON
        {
            get { return this[C_REPAIR_REASON]; }
        }
		
		public ColumnInfo STATUS
        {
            get { return this[C_STATUS]; }
        }
		
		
		
	}
}

